-- GENERATED SPELL FOR [Qiraji Gladiator] --


function spell0_15324(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(5568,pUnit)
pUnit:RegisterEvent('Sorts_15324', 633, 1)
end

function spell1_15324(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15324', 585, 1)
end

function spell2_15324(pUnit, Event) --@Vengeance,Self--
pUnit:FullCastSpellOnTarget(25164,pUnit)
pUnit:RegisterEvent('Sorts_15324', 30320, 1)
end

function Sorts_15324(pUnit, Event)
local choix_sorts_15324 = math.random(0, 2)
if choix_sorts_15324 == 0 then
pUnit:RegisterEvent('spell0_15324', 1, 1)
end
if choix_sorts_15324 == 1 then
pUnit:RegisterEvent('spell1_15324', 1, 1)
end
if choix_sorts_15324 == 2 then
pUnit:RegisterEvent('spell2_15324', 1, 1)
end
end

function mob15324_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15324', math.random(1500, 3000), 1)
end

function mob15324_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15324_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15324_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15324, 1, 'mob15324_Action')
RegisterUnitEvent(15324, 2, 'mob15324_Leave')
RegisterUnitEvent(15324, 3, 'mob15324_Kill')
RegisterUnitEvent(15324, 4, 'mob15324_Die')
